<template>
  <div>
    <div style="text-align: right;margin-bottom: 10px; color: #4a4c4e;">
      <span>单位 : 元</span>
    </div>
    <table class="table" width="100%" cellspacing="0">
      <thead class="header">
      <th>资产</th>
      <th>年初数</th>
      <th>期末数</th>
      </thead>
      <tbody v-if="Object.keys(data).length" class="body">
      <tr>
        <td colspan="3">流动资产</td>
      </tr>
      <tr>
        <td>货币资金</td>
        <td>{{ data.this_year_start.monetary_capital }}</td>
        <td>{{ data.this_month.monetary_capital }}</td>
      </tr>
      <tr>
        <td>交易性金融资产</td>
        <td>{{ data.this_year_start.trading_financial_assets }}</td>
        <td>{{ data.this_month.trading_financial_assets }}</td>
      </tr>
      <tr>
        <td>应收票据</td>
        <td>{{ data.this_year_start.notes_receivable }}</td>
        <td>{{ data.this_month.notes_receivable }}</td>
      </tr>
      <tr>
        <td>应收账款</td>
        <td>{{ data.this_year_start.accounts_receivable }}</td>
        <td>{{ data.this_month.accounts_receivable }}</td>
      </tr>
      <tr>
        <td>预付款项</td>
        <td>{{ data.this_year_start.advance_payment }}</td>
        <td>{{ data.this_month.advance_payment }}</td>
      </tr>
      <tr>
        <td>应收利息</td>
        <td>{{ data.this_year_start.interest_receivable }}</td>
        <td>{{ data.this_month.interest_receivable }}</td>
      </tr>
      <tr>
        <td>应收股利</td>
        <td>{{ data.this_year_start.dividends_receivable }}</td>
        <td>{{ data.this_month.dividends_receivable }}</td>
      </tr>
      <tr>
        <td>其他应收款</td>
        <td>{{ data.this_year_start.other_receivables }}</td>
        <td>{{ data.this_month.other_receivables }}</td>
      </tr>
      <tr>
        <td>存货</td>
        <td>{{ data.this_year_start.stock }}</td>
        <td>{{ data.this_month.stock }}</td>
      </tr>
      <tr>
        <td>一年内到期的非流动资产</td>
        <td>{{ data.this_year_start.year_non_current_assets }}</td>
        <td>{{ data.this_month.year_non_current_assets }}</td>
      </tr>
      <tr>
        <td>其他流动资产</td>
        <td>{{ data.this_year_start.other_current_assets }}</td>
        <td>{{ data.this_month.other_current_assets }}</td>
      </tr>
      <tr>
        <td>流动资产合计</td>
        <td>{{ data.this_year_start.total_current_assets }}</td>
        <td>{{ data.this_month.total_current_assets }}</td>
      </tr>
      <tr>
        <td colspan="3">非流动资产</td>
      </tr>
      <tr>
        <td>可供出售金融资产</td>
        <td>{{ data.this_year_start.available_for_sale_financial_assets }}</td>
        <td>{{ data.this_month.available_for_sale_financial_assets }}</td>
      </tr>
      <tr>
        <td>持有至到期投资</td>
        <td>{{ data.this_year_start.held_to_maturity_investment }}</td>
        <td>{{ data.this_month.held_to_maturity_investment }}</td>
      </tr>
      <tr>
        <td>长期应收款</td>
        <td>{{ data.this_year_start.long_term_receivables }}</td>
        <td>{{ data.this_month.long_term_receivables }}</td>
      </tr>
      <tr>
        <td>长期股权投资</td>
        <td>{{ data.this_year_start.long_term_equity_investment }}</td>
        <td>{{ data.this_month.long_term_equity_investment }}</td>
      </tr>
      <tr>
        <td>投资性房地产</td>
        <td>{{ data.this_year_start.investment_real_estate }}</td>
        <td>{{ data.this_month.investment_real_estate }}</td>
      </tr>
      <tr>
        <td>固定资产</td>
        <td>{{ data.this_year_start.fixed_assets }}</td>
        <td>{{ data.this_month.fixed_assets }}</td>
      </tr>
      <tr>
        <td>在建工程</td>
        <td>{{ data.this_year_start.construction_in_progress }}</td>
        <td>{{ data.this_month.construction_in_progress }}</td>
      </tr>
      <tr>
        <td>工程物资</td>
        <td>{{ data.this_year_start.engineering_materials }}</td>
        <td>{{ data.this_month.engineering_materials }}</td>
      </tr>
      <tr>
        <td>固定资产清理</td>
        <td>{{ data.this_year_start.liquidation_of_fixed_assets }}</td>
        <td>{{ data.this_month.liquidation_of_fixed_assets }}</td>
      </tr>
      <tr>
        <td>生产性生物资产</td>
        <td>{{ data.this_year_start.productive_biological_assets }}</td>
        <td>{{ data.this_month.productive_biological_assets }}</td>
      </tr>
      <tr>
        <td>油气资产</td>
        <td>{{ data.this_year_start.oil_and_gas_assets }}</td>
        <td>{{ data.this_month.oil_and_gas_assets }}</td>
      </tr>
      <tr>
        <td>无形资产</td>
        <td>{{ data.this_year_start.intangible_assets }}</td>
        <td>{{ data.this_month.intangible_assets }}</td>
      </tr>
      <tr>
        <td>开发支出</td>
        <td>{{ data.this_year_start.development_expenditure }}</td>
        <td>{{ data.this_month.development_expenditure }}</td>
      </tr>
      <tr>
        <td>商誉</td>
        <td>{{ data.this_year_start.goodwill }}</td>
        <td>{{ data.this_month.goodwill }}</td>
      </tr>
      <tr>
        <td>长期待摊费用</td>
        <td>{{ data.this_year_start.long_term_deferred_expenses }}</td>
        <td>{{ data.this_month.long_term_deferred_expenses }}</td>
      </tr>
      <tr>
        <td>递延所得税资产</td>
        <td>{{ data.this_year_start.deferred_tax_assets }}</td>
        <td>{{ data.this_month.deferred_tax_assets }}</td>
      </tr>
      <tr>
        <td>其他非流动资产</td>
        <td>{{ data.this_year_start.other_non_current_assets }}</td>
        <td>{{ data.this_month.other_non_current_assets }}</td>
      </tr>
      <tr>
        <td>非流动资产合计</td>
        <td>{{ data.this_year_start.total_non_current_assets }}</td>
        <td>{{ data.this_month.total_non_current_assets }}</td>
      </tr>
      <tr>
        <td>资产合计</td>
        <td>{{ data.this_year_start.total_assets }}</td>
        <td>{{ data.this_month.total_assets }}</td>
      </tr>
      </tbody>
      <tr v-else  class="no_data">
        <td colspan="3">
          你想要的正在来的路上...
        </td>
      </tr>
    </table>
    <div style="text-align: right;margin: 10px 0; color: #4a4c4e;">
      <span>单位 : 元</span>
    </div>
    <table class="table" width="100%" cellspacing="0" style="margin-top: 10px">
      <thead class="header">
      <th>负债</th>
      <th>年初数</th>
      <th>期末数</th>
      </thead>
      <tbody v-if="Object.keys(data).length" class="body">
      <tr>
        <td colspan="3">流动负债</td>
      </tr>
      <tr>
        <td>短期借款</td>
        <td>{{ data.this_year_start.short_term_loans }}</td>
        <td>{{ data.this_month.short_term_loans }}</td>
      </tr>
      <tr>
        <td>交易性金融负债</td>
        <td>{{ data.this_year_start.trading_financial_liabilities }}</td>
        <td>{{ data.this_month.trading_financial_liabilities }}</td>
      </tr>
      <tr>
        <td>应付票据</td>
        <td>{{ data.this_year_start.notes_payable }}</td>
        <td>{{ data.this_month.notes_payable }}</td>
      </tr>
      <tr>
        <td>应付账款</td>
        <td>{{ data.this_year_start.accounts_payable }}</td>
        <td>{{ data.this_month.accounts_payable }}</td>
      </tr>
      <tr>
        <td>预收款项</td>
        <td>{{ data.this_year_start.advance_payment_liabilities }}</td>
        <td>{{ data.this_month.advance_payment_liabilities }}</td>
      </tr>
      <tr>
        <td>应付职工薪酬</td>
        <td>{{ data.this_year_start.employee_compensation_payable }}</td>
        <td>{{ data.this_month.employee_compensation_payable }}</td>
      </tr>
      <tr>
        <td>应交税费</td>
        <td>{{ data.this_year_start.tax_payable }}</td>
        <td>{{ data.this_month.tax_payable }}</td>
      </tr>
      <tr>
        <td>应付利息</td>
        <td>{{ data.this_year_start.interest_payable }}</td>
        <td>{{ data.this_month.interest_payable }}</td>
      </tr>
      <tr>
        <td>应付股利</td>
        <td>{{ data.this_year_start.dividends_payable }}</td>
        <td>{{ data.this_month.dividends_payable }}</td>
      </tr>
      <tr>
        <td>其他应付款</td>
        <td>{{ data.this_year_start.other_accounts_payable }}</td>
        <td>{{ data.this_month.other_accounts_payable }}</td>
      </tr>
      <tr>
        <td>一年内到期的非流动负债</td>
        <td>{{ data.this_year_start.year_non_current_liabilities }}</td>
        <td>{{ data.this_month.year_non_current_liabilities }}</td>
      </tr>
      <tr>
        <td>其他流动负债</td>
        <td>{{ data.this_year_start.other_current_liabilities }}</td>
        <td>{{ data.this_month.other_current_liabilities }}</td>
      </tr>
      <tr>
        <td>流动负债合计</td>
        <td>{{ data.this_year_start.total_current_liabilities }}</td>
        <td>{{ data.this_month.total_current_liabilities }}</td>
      </tr>
      <tr>
        <td colspan="3">非流动负债</td>
      </tr>
      <tr>
        <td>长期借款</td>
        <td>{{ data.this_year_start.long_term_loan }}</td>
        <td>{{ data.this_month.long_term_loan }}</td>
      </tr>
      <tr>
        <td>应付债券</td>
        <td>{{ data.this_year_start.bonds_payable }}</td>
        <td>{{ data.this_month.bonds_payable }}</td>
      </tr>
      <tr>
        <td>长期应付款</td>
        <td>{{ data.this_year_start.long_term_accounts_payable }}</td>
        <td>{{ data.this_month.long_term_accounts_payable }}</td>
      </tr>
      <tr>
        <td>专项应付款</td>
        <td>{{ data.this_year_start.special_accounts_payable }}</td>
        <td>{{ data.this_month.special_accounts_payable }}</td>
      </tr>
      <tr>
        <td>预计负债</td>
        <td>{{ data.this_year_start.estimated_liabilities }}</td>
        <td>{{ data.this_month.estimated_liabilities }}</td>
      </tr>
      <tr>
        <td>递延所得税负债</td>
        <td>{{ data.this_year_start.deferred_tax_liability }}</td>
        <td>{{ data.this_month.deferred_tax_liability }}</td>
      </tr>
      <tr>
        <td>其他非流动负债</td>
        <td>{{ data.this_year_start.other_non_current_liabilities }}</td>
        <td>{{ data.this_month.other_non_current_liabilities }}</td>
      </tr>
      <tr>
        <td>非流动负债合计</td>
        <td>{{ data.this_year_start.total_non_current_liabilities }}</td>
        <td>{{ data.this_month.total_non_current_liabilities }}</td>
      </tr>
      <tr>
        <td>负债合计</td>
        <td>{{ data.this_year_start.total_liabilities }}</td>
        <td>{{ data.this_month.total_liabilities }}</td>
      </tr>
      </tbody>
      <tr v-else  class="no_data">
        <td colspan="3">
          你想要的正在来的路上...
        </td>
      </tr>
    </table>
    <div style="text-align: right;margin: 10px  0; color: #4a4c4e;">
    <span>单位 : 元</span>
  </div>
    <table class="table" width="100%" cellspacing="0" style="margin-top: 10px">
      <thead class="header">
      <th>所有者（或股东）权益</th>
      <th>年初数</th>
      <th>期末数</th>
      </thead>
      <tbody v-if="Object.keys(data).length" class="body">
      <tr>
        <td colspan="3">所有者（或股东）权益</td>
      </tr>
      <tr>
        <td>实收资本（或股本）</td>
        <td>{{ data.this_year_start.paid_in_capital }}</td>
        <td>{{ data.this_month.paid_in_capital }}</td>
      </tr>
      <tr>
        <td>资本公积</td>
        <td>{{ data.this_year_start.capital_reserve }}</td>
        <td>{{ data.this_month.capital_reserve }}</td>
      </tr>
      <tr>
        <td>减：库存股</td>
        <td>{{ data.this_year_start.treasury_stock }}</td>
        <td>{{ data.this_month.treasury_stock }}</td>
      </tr>
      <tr>
        <td>盈余公积</td>
        <td>{{ data.this_year_start.surplus_reserve }}</td>
        <td>{{ data.this_month.surplus_reserve }}</td>
      </tr>
      <tr>
        <td>未分配利润</td>
        <td>{{ data.this_year_start.undistributed_profit }}</td>
        <td>{{ data.this_month.undistributed_profit }}</td>
      </tr>
      <tr>
        <td>其他综合收益</td>
        <td>{{ data.this_year_start.other_comprehensive_income }}</td>
        <td>{{ data.this_month.other_comprehensive_income }}</td>
      </tr>
      <tr>
        <td>所有者权益（或股东权益）合计</td>
        <td>{{ data.this_year_start.total_owner_equity }}</td>
        <td>{{ data.this_month.total_owner_equity }}</td>
      </tr>
      </tbody>
      <tr v-else  class="no_data">
        <td colspan="3">
          你想要的正在来的路上...
        </td>
      </tr>
    </table>

    <div style="text-align: right;margin: 10px  0; color: #4a4c4e;">
      <span>单位 : 元</span>
    </div>
    <table class="table" width="100%" cellspacing="0" style="margin-top: 10px">
      <thead class="header">
      <th>负债和所有者权益（或股东权益）总计</th>
      <th>年初数</th>
      <th>期末数</th>
      </thead>
      <tbody v-if="Object.keys(data).length" class="body">
      <tr>
        <td>总计</td>
        <td>{{ data.this_year_start.total_liabilities_and_owner_equity }}</td>
        <td>{{ data.this_month.total_liabilities_and_owner_equity }}</td>
      </tr>
      </tbody>
      <tr v-else  class="no_data">
        <td colspan="3">
          你想要的正在来的路上...
        </td>
      </tr>
    </table>
  </div>
</template>

<script>
export default {
  name: "assetsTable",
  props: {
    data: {
      type: Object,
      default: () => {
      }
    }
  },
}
</script>

<style scoped>

</style>
